package cn.jtool.dig.server.domain.reqeust;

import cn.jtool.knife.core.validator.Create;
import cn.jtool.knife.core.validator.Update;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.util.Date;
import java.util.List;

@Data
public class LicenseParams {

    @NotNull(message = "授权码ID不能为空", groups = Update.class)
    private Integer id;

    @NotBlank(message = "授权码名称不能为空", groups = {Update.class, Create.class})
    private String licenseName;

    @NotNull(message = "授权码状态不能为空", groups = {Update.class, Create.class})
    private Integer enableState;

    @NotNull(message = "授权码生效时间不能为空", groups = {Update.class, Create.class})
    private Date effectiveTime;

    @NotNull(message = "授权码失效时间不能为空", groups = {Update.class, Create.class})
    private Date expireTime;

    private String whiteIps;

    private String blackIps;

    private String notes;

}
